﻿<!--//=============================================================
    // Copyright (C) 2016 福流网络
    // 作 者：曾同春
    // 日 期：2016-12-11
    // 描 述:  qp上传成功记录
    // 版 本：1.00
    // 修改历史纪录
    // 版 本  修改时间      修改人            修改内容
    //=============================================================-->
<table style="width:430px">
    <tr>
        <td>发送时间</td>
        <td>
            <input id="start_dt" name="start_dt" class="mini-datepicker" style="width:95px;" />
            <input id="end_dt" name="end_dt" class="mini-datepicker" style="width:95px;" />
        </td>
        <td>部门</td>
        <td style="width:20%;">
            <div id="auttransport_way" name="transport_way" shownullitem="true" class="mini-combobox" style="width: 100%; float:left;" popupwidth="200" allowinput="true" pinyinfield="name" textfield="name" valuefield="value" valuefromselect="true"
                 selectonfocus="true" showclose="true" url="../../../Share/GetJsonList?tablename=v_data_base_dictionary_detail&fieldnames=value,name&where=code='bg_kouanleixing' and value<>'-1'&searchField=name,value" oncloseclick="onCloseClick">
                <div property="columns">
                    <div header="编号" field="value"></div>
                    <div header="简称" field="name"></div>
                </div>
            </div>
        </td>
        <td>
            <a class="mini-button"  onclick="fnCustomQuciklyQuery()">查  询</a>
        </td>
    </tr>
</table>

<script>
    $().ready(function () {
        $("#btnHQuery").hide();
    });
    function fnCustomQuciklyQuery() {
        var start = mini.get("start_dt").getText();
        var end = mini.get("end_dt").getText();
        var way = mini.get("auttransport_way").getValue();
        var _condition = "1=1 ";
        if (start!="") {
            _condition += " and send_time>='"+start+"'";
        }
        if (end != "") {
            _condition += " and send_time<='" + end + "'";
        }
        if (way!="") {
            _condition += " and transport_way='" + way + "'";
        }
        console.log(_condition);
        var const_Order = "transport_way asc";   // 按合计数排序
        // grid.setUrl("../data/jsondata.aspx?entity=v_fin_BillAuditing&condition=" + encodeURI(_condition) + "&datagrid=true");
        grid.setUrl("../data/jsondata.aspx?action=" + const_get_action + "&totalfields=" + getPar("totalfields") + "&entity=v_qp_input_log&condition=" + encodeURI(_condition) + "&order=" + const_Order + "&datagrid=true");
        grid.load();
    }
</script>